[t:/]$ 지식_

LDD Ch02. Quick Ref.

2008/12/31

다시 핵심만.

1.

insmod
modprobe
rmmod

2.

#include <linux/init.h>  

module_init(init_function);  
module_exit(cleanup_function);  

3.

__init
__initdata
__exit
__exitdata

메모리에서 쓰고 바로 없어짐.

4.

#include <linux/sched.h>

struct task_struct *current; // The current process.

current->pid
current->comm // The process ID and command name for the current process.




공유하기













[t:/] is not "technology - root". dawnsea, rss